package com.ews.onlineexchange.model;

import javax.persistence.Entity;

@Entity
public class ServiceDepartment extends DataEntity {
	
	/**
	 * 
	 */
	private static final long	serialVersionUID	= 1L;
	
	private String cnname;

	public String getCnname() {
		return cnname;
	}

	public void setCnname(String cnname) {
		this.cnname = cnname;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((cnname == null) ? 0 : cnname.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ServiceDepartment other = (ServiceDepartment) obj;
		if (cnname == null) {
			if (other.cnname != null)
				return false;
		} else if (!cnname.equals(other.cnname))
			return false;
		return true;
	}
}
